#!/usr/bin/python 

# contains all error messages for the VRISC


# english error messages
class error_messages(object):
	def output(self, mes, value=0):
		self.var = value
		self.message = {
			"no_int": "Exception: " + str(self.var) + " is no Integer!",
			"bu_of_m": "Exception: " + str(self.var) + " buffer overflow for 32 bit memory!",
			"bu_of_r": "Exception: buffer overflow",
			"div_0": "Exception: division by zero!",
			"in_pr_a": "Exception: invalid program adress!",
			"in_pr_c": "Exception: invalid program code!\nIn line:" + str(self.var),
			"in_nu_o": "Exception: invalid number of operands!",
			"in_st_a": "Exception: invalid stack adress!",
			"no_pr": "Exception: no program given"}
		return self.message[mes]
